EMT Practice Test

1. Question Content...


Question List

Question1: Which of the following commands creates or, in case it already exists, overwrites a file called datawith the output of ls?
ls 3> data

Question2: Which command displays the contents of the Kernel Ring Buffer on the command line?
(Provide only the command name without any options or path information)

Question3: What is the default action of the split command on an input file?

Question4: Which of the following are filesystems which can be used on Linux root partitions? (Choose two.)

Question5: Consider the following directory:
drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales
Which command ensures new files created within the directory salesare owned by the group sales?
(Choose two.)

Question6: Which of the following signals is sent to a process when the key combination Ctrl+C is pressed on the keyboard?

Question7: Which of the following commands determines a file's format by using a definition database file which contains information about all common file types?
type

Question8: What output will be displayed when the user fred executes the following command?
echo 'fred $USER'

Question9: Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?

Question10: What is true regarding the configuration of yum? (Choose two.)

Question11: Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.)

Question12: Given a log file loga.log with timestamps of the format DD/MM/YYYY:hh:mm:ss, which command filters out all log entries in the time period between 8:00 am and 8:59 am?

Question13: Which of the following commands redirects the output of lsto standard error?
ls >-1

Question14: Which of the following commands can be used to create a USB storage media from a disk image?

Question15: In Bash, inserting 2>&1 after a command redirects:

Question16: Which of the following commands can be used to determine how long the system has been running? (Choose two.) uptime

Question17: Which of the following commands displays the path to the executable file that would be executed when the command foo is invoked?

Question18: Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Choose two.)

Question19: Which command is used to start another command with a given nice level? (Specify ONLY the command without any path or parameters.)

Question20: Which of the following apt-getsubcommands installs the newest versions of all currently installed packages?

Question21: Which of the following directories on a 64 bit Linux system typically contain shared libraries? (Choose two.)

Question22: When piping the output of find to the xargs command, what option to find is useful if the filenames have spaces in them?

Question23: Which of the following commands lists all currently installed packages when using RPM package management?
yum --query --all

Question24: Which of the following commands can perform searches on file contents using regular expressions?

Question25: Which of the following statements is correct for a command ending with an &character?

Question26: Which command uninstalls a package but keeps its configuration files in case the package is re-installed?

Question27: Consider the following directory:
drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales
Which command ensures new files created within the directory salesare owned by the group sales?
(Choose two.)

Question28: Which of the following commands will load a kernel module along with any required dependency modules?

Question29: A backup software heavily uses hard links between files which have not been changed in between two backup runs. Which benefits are realized due to these hard links? (Choose two.)

Question30: Which of the following commands reads a file and creates separate chunks of a given size from the file's contents?
ar

Question31: Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?

Question32: A faulty kernel module is causing issues with a network interface card. Which of the following actions ensures that this module is not loaded automatically when the system boots?

Question33: Which of the following commands can perform searches on file contents using regular expressions?
find

Question34: In Bash, inserting 1>&2 after a command redirects

Question35: Which of the following statements is correct regarding the command foo 1> bar?

Question36: Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time?
(Specify ONLY the command without any path or parameters.)

Question37: Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?

Question38: Which of the following properties of a Linux system should be changed when a virtual machine is cloned?
(Choose two.)

Question39: The system configuration file named _______ is commonly used to set the default runlevel. (Please provide the file name with full path information)

Question40: Which of the following files exist in a standard GRUB 2 installation? (Choose two.)

Question41: Which of the following commands lists the dependencies of the RPM package file foo.rpm?

Question42: Which of the following commands can be used to download the RPM package kernel without installing it?

Question43: Where does the BIOS search for a bootloader?

Question44: Which of the following vi commands deletes two lines, the current and the following line?

Question45: Which of the following signals is sent to a process when the key combination Ctrl+Z is pressed on the keyboard?

Question46: Which of the following commands displays the output of the foo command on the screen and also writes it to a file called /tmp/foodata?

Question47: Which variable defines the directories in which a Bash shell searches for executable commands?

Question48: Which command displays a list of all background tasks running in the current shell?
(Specify ONLY the command without any path or parameters.)

Question49: During a system boot cycle, what program is executed after the BIOS completes its tasks?

Question50: Which of the following files, located in a user's home directory, contains the Bash history?

Question51: When removing a package, which of the following dpkg options will completely remove the files including configuration files?

Question52: Regarding the command:
nice -5 /usr/bin/prog
Which of the following statements is correct?

Question53: What is the output when the regular expression s/[ABC] [abc]/xx/is applied to the following string?
ABCabc
ABxxbc

Question54: Which of the following commands displays the contents of a gzip compressed tar archive?

Question55: Which of the following commands shows the definition of a given shell command?

Question56: Which of the following commands list all files and directories within the /tmp/directory and its subdirectories which are owned by the user root? (Choose two.) find /tmp -user root -print

Question57: Which RPM command will output the name of the package which supplied the file /etc/exports?

Question58: Which of the following commands converts spaces in a file to tab characters and prints the result to standard output?

Question59: A Debian package creates several files during its installation. Which of the following commands searches for packages owning the file /etc/debian_version?

Question60: What output will be displayed when the user fredexecutes the following command?
echo 'fred $USER'

Question61: Which of the following commands will produce the following output?

Question62: Which file defines the network locations from where the Debian package manager downloads software packages?
/etc/dpkg/dpkg.cfg

Question63: Consider the following output from the command ls -i:

How would a new file named c.txt be created with the same inode number as a.txt (Inode 525385)?

Question64: Which of the following options must be passed to a filesystem's entry in /etc/fstab in order to mount the file system without root privileges?

Question65: Which of the following commands installs the GRUB boot files into the currently active file systems and the boot loader into the first partition of the first disk?

Question66: What does the command mount --bind do?

Question67: In the vi editor, what vi command will copy (but not paste) from the current line at the cursor and the following 16 lines (17 lines total)?
Specify the correct vi command without spaces.

Question68: Which command creates a swap space on a block device or a file? (Specify ONLY the command without any path or parameters.)

Question69: When redirecting the output of findto the xargscommand, what option to findis useful if the filenames contain spaces?

Question70: Which of the following regular expressions represents a single upper-case letter?

Question71: Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?

Question72: What information can the lspcicommand display about the system hardware? (Choose three.)

Question73: What command changes the nice level of a running process?
(Specify ONLY the command without any path or parameters)

Question74: In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?

Question75: What output will be displayed when the user fredexecutes the following command?
echo 'fred $USER'
fred fred

Question76: Which of the following properties of a Linux system should be changed when a virtual machine is cloned?
(Choose two.)

Question77: Which of the following Linux filesystems preallocate a fixed number of inodes when creating a new filesystem instead of generating them as needed? (Choose two.)

Question78: When running the command
sed -e "s/a/b/" /tmp/file >/tmp/file
While /tmp/file contains data, why is /tmp/file empty afterwards?

Question79: Which command must be entered before exiting vi to save the current file as filea.txt?
%s filea.txt

Question80: What is the process ID number of the initprocess on a System V init based system?

Question81: Which of the following commands changes all occurrences of the word "bob" in file data to "Bob" and prints the result to standard output?

Question82: Which of the following commands are valid in the GRUB 2 configuration file? (Choose two.) menuentry

Question83: While editing a file in vi, the file changes due to another process. Without exiting vi, how can the file be reopened for editing with the new content?

Question84: Which of the following commands is used to change metadata and options for ext3 filesystems?

Question85: Which of the following commands print the current working directory when using a Bash shell? (Choose two.)

Question86: Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)

Question87: Which command displays the contents of the Kernel Ring Buffer on the command line? (Provide only the command name without any options or path information)

Question88: Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)

Question89: From a Bash shell, which of the following commands directly execute the instructions from the file /usr/ local/bin/runme.shwithout starting a subshell? (Choose two.)

Question90: What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?

Question91: Which of the following commands lists the dependencies of the RPM package file foo.rpm?
rpm -qpR foo.rpm

Question92: Which of the following commands is used to modify quota settings? (Choose two.)

Question93: FILL BLANK
What directory contains configuration files for additional yum repositories? (Specify the full path to the directory.)

Question94: What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)

Question95: Following the Filesystem Hierarchy Standard (FHS), where should binaries that have been compiled by the system administrator be placed in order to be made available to all users on the system?

Question96: What is the purpose of the xargs command?

Question97: The installation of a local Debian package failed due to unsatisfied dependencies. Which of the following commands installs missing dependencies and completes the interrupted package installation?

Question98: Which of the following are valid stream redirection operators within Bash? (Choose two.)

Question99: Which of the following directories on a 64 bit Linux system typically contain shared libraries? (Choose two.)

Question100: After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?

Question101: Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)

Question102: The USB device filesystem can be found under /proc/______/usb/. (Please fill in the blank with the single word only)

Question103: Which of the following tools can show the complete path of an executable file that the current shell would execute when starting a command without specifying its complete path? (Choose two.) find

Question104: What is true regarding the command
ls > files
if files does not exist?

Question105: During a system boot cycle, what is the program that is run after the BIOS completes its tasks?

Question106: Which of the following are modes of the vi editor? (Choose two.)

Question107: In compliance with the FHS, in which of the directories are man pages found?
/opt/man/

Question108: An administrator has issued the following command:
grub-install --root-directory=/custom-grub /dev/sda
In which directory will new configuration files be found? (Provide the full directory path only without the filename)

Question109: Which of the following commands moves and resumes in the background the last stopped shell job?

Question110: What does the command mount -a do?

Question111: Which of the following commands will write a message to the terminals of all logged in users?

Question112: In order to display all currently mounted filesystems, which of the following commands could be used?
(Choose TWO correct answers.)

Question113: Which of the following explanations are valid reasons to run a command in the background of your shell?

Question114: Which of the following partition types is used for Linux swap spaces when partitioning hard disk drives?

Question115: What is the first program the Linux kernel starts at boot time when using System V init?

Question116: Which of the following commands lists the dependencies of the RPM package file foo.rpm?
rpm -qpR foo.rpm

Question117: Which of the following directories on a 64 bit Linux system typically contain shared libraries? (Choose two.)
~/.lib64/

Question118: Which command is used to create and initialize the files used to store quota information? (Specify ONLY the command without any path or parameters.)

Question119: The installation of a local Debian package failed due to unsatisfied dependencies. Which of the following commands installs missing dependencies and completes the interrupted package installation?
dpkg --fix --all

Question120: Which option to the tee command will cause the output to be concatenated on the end of the output file instead of overwriting the existing file contents?